package api;

import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import pojo.User;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

@FeignClient(value = "UserService",path = "/user")
public interface UserServiceApi {

    @ApiOperation("ID查询用户")
    @GetMapping("/{userid}")
    public User getUser(@ApiParam("用户ID") @PathVariable int userid);

    @GetMapping("/now")
    public String now();
}
